package old.apiday03;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo {
    public static void main(String[] args) {


        Collection c=new ArrayList();
        c.add(new Point(1,2));
        c.add(new Point(2,3));
        c.add(new Point(3,4));
        c.add(new Point(4,5));
        c.add(new Point(5,6));
        c.add(new Point(1,2));
        System.out.println(c);
        Point p=new Point(1,2);
        boolean contains=c.contains(p);
        System.out.println(contains);
        c.remove(p);
        System.out.println(c);
        c.remove(p);
        System.out.println(c);

























        /*
        Collection c=new ArrayList();
        c.add("1234");
        c.add("65765");
        c.add("6434");
        System.out.println(c);
        int length=c.size();
        System.out.println(length);
        boolean isEmpty= c.isEmpty();
        System.out.println(isEmpty);
        c.clear();
        System.out.println(c);

         */
    }


}
